package com.hkk.entity;

public class PersonFactory2 {
    public Person getEntityPerson(){
        Person person=new Person();
        Book book=new Book();
        book.setName("数学");
        person.setId(1);
        person.setBook(book);
        person.setName("铠");
        return person;

    }

}
